package yogaModel

import "time"

type ReqTeacher struct {
	Id            int       `json:"id"`
	Name          string    `json:"name" binding:"required" required_err:"参数缺失【name】"`
	Introduction  string    `json:"introduction" binding:"required" required_err:"参数缺失【introduction】"`
	Pic           string    `json:"pic" binding:"required" required_err:"参数缺失【pic】"`
	Sex           int       `json:"sex" binding:"required" required_err:"参数缺失【sex】"`
	Level         int       `json:"level" binding:"required" required_err:"参数缺失【level】"`
	Acid          int       `json:"acid"`
	SubMchId      string    `json:"sub_mch_id" binding:"required" required_err:"参数缺失【sub_mch_id】"`
	Weight        int       `json:"weight"`
	PhoneNumber   string    `json:"phone_number" binding:"required" required_err:"参数缺失【phone_number】"`
	StarRating    float32   `json:"star_rating"`
	StartTime     string    `json:"start_time"`
	EndTime       string    `json:"end_time"`
	IsReservation int       `xorm:"-" json:"is_reservation"`
	IsHome        int       `json:"is_home"`
	VenueId       int       `json:"venue_id"`
	Cover         string    `json:"cover" binding:"required" required_err:"参数缺失【cover】"`
	DeletedAt     time.Time `xorm:"deleted" json:"-" form:"deleted_at" mapstructure:"deleted_at"`
}
type RspTeacher struct {
	Info  ReqTeacher `json:"info"`
	Album []ReqAlbum `json:"album"`
}
type ReqTeacherJoin struct {
	Id            int       `json:"id"`
	Name          string    `json:"name" binding:"required" required_err:"参数缺失【name】"`
	Introduction  string    `json:"introduction" binding:"required" required_err:"参数缺失【introduction】"`
	Pic           string    `json:"pic" binding:"required" required_err:"参数缺失【pic】"`
	Sex           int       `json:"sex" binding:"required" required_err:"参数缺失【sex】"`
	Level         int       `json:"level" binding:"required" required_err:"参数缺失【level】"`
	Acid          int       `json:"acid"`
	SubMchId      string    `json:"sub_mch_id" binding:"required" required_err:"参数缺失【sub_mch_id】"`
	Weight        int       `json:"weight"`
	PhoneNumber   string    `json:"phone_number" binding:"required" required_err:"参数缺失【phone_number】"`
	StarRating    float32   `json:"star_rating"`
	StartTime     string    `json:"start_time"`
	EndTime       string    `json:"end_time"`
	IsReservation int       `xorm:"-" json:"is_reservation"`
	IsHome        int       `json:"is_home"`
	VenueId       int       `json:"venue_id"`
	Cover         string    `json:"cover" binding:"required" required_err:"参数缺失【cover】"`
	DeletedAt     time.Time `xorm:"yt.deleted" json:"-" form:"deleted_at" mapstructure:"deleted_at"`
}
